#!/bin/bash
__SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
if [ ! -e "$__SCRIPT_DIR/utils.sh" ]
then
    echo "[ERR] $__SCRIPT_DIR/utils.sh not found"
    exit -1
fi

exefile=/tmp/C_build_$$
g++ -std=c++1y -o $exefile Main.cpp
rc=$?
if [ $rc -eq 0 ]
then
    $exefile "$@"
    rc=$?;
    rm $exefile
fi
exit $rc 
